#include "arm_control.h"


int main(){
    ArmControl ac;
    const unsigned short SERVERPORT = 6000;
    ac.start_server(SERVERPORT);

    while(1){
        int ret=ac.get_data();
        if(ret<=0)break;
        ac.print_status_now();

        sleep(0.5);
    }
    ac.stop_server();
}
